package com.zh.mybatis.domain.book.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zh.mybatis.domain.BaseEntity;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;

/**
 * @author ZH
 * @date 20:40 2021/11/16
 */
@Getter
@Setter
@TableName("t_book")
public class Book extends BaseEntity {
    @TableId(type = IdType.AUTO)
    private Long id;

    private String title;

    private String author;

    private BigDecimal price;

}
